package tg.app.rj.aqprorep;

import java.rmi.RemoteException;
import psdi.mbo.MboSet;
import psdi.mbo.MboSetRemote;
import psdi.mbo.StatefulMbo;
import psdi.mbo.StatefulMboRemote;
import psdi.mbo.StatusHandler;
import psdi.util.MXException;

/***
 * 
 * @author pzx
 *
 */
public  class Aqprorep extends StatefulMbo implements StatefulMboRemote {

	public Aqprorep(MboSet ms) throws RemoteException {
		super(ms);
	}
	
	@Override
	public void add() throws MXException, RemoteException {
		super.add();
		setValue("SITEID", getInsertSite());
		setValue("ORGID", getInsertOrganization());
	}

	@Override
	protected StatusHandler getStatusHandler() {
		return new AqprorepStatusHandler(this);
	}

	@Override
	protected MboSetRemote getStatusHistory() throws MXException,
			RemoteException {
		return getMboSet("AQPROREPSTATUS");
	}

	@Override
	public String getStatusListName() {
		return "AQPROREPSTATUS";
	}

}
